package homework;
import java.util.Scanner;
public class Demo5 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入您的消费金额：");
        float a = scanner.nextFloat();
        if (a*0.8f>=1000){
            System.out.println("恭喜您获得200元代金券一张！");
        }
        else {
            System.out.println("您毛优惠也没有，欢迎下次光临！");
        }
    }
}
